import {Button} from "antd"
import {useNavigate} from "react-router-dom"
import './account.less'

const Account = () => {
    const navigate = useNavigate();
    const navLink = () => {
        navigate('/setting/account/info')
    }
    const navLink1 = () => {
        navigate('/setting/account/password')
    }
    return (
        <>
            <div>用户端账号设置</div>
            <div className="info">
                <Button type="primary" onClick={navLink}>个人信息修改</Button>
            </div>
            <div>
                <Button type="primary" onClick={navLink1} danger>密码修改</Button>
            </div>
        </>
    )
}

export default Account